package com.lulufind.lulu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lulufind.lulu.model.UserPostJoin;
import com.lulufind.lulu.vo.PostInfoVO;
import com.lulufind.lulu.vo.PostUserVO;

public interface UserPostJoinMapper {
	public int save(UserPostJoin userPostJoin);
	public int delete(UserPostJoin userPostJoin);
	public Integer checkJoinStatus(@Param("postId")Integer postId, @Param("userId")Integer userId);
	public int updateStatus(@Param("joinUserId")Integer joinUserId, @Param("joinPostId")Integer joinPostId, @Param("joinStatus")Integer joinStatus);
	public List<PostUserVO> findPostUser(@Param("postId")int postId);
	public Integer findPostUserJoinNum(@Param("postId")int postId);
	public List<PostInfoVO> findHotPost(@Param("start")int start, @Param("num")int num);
}
